/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

#ifndef SAMPLE_SIMPLE_DESCRIBEREGIONSREQUEST_H_
#define SAMPLE_SIMPLE_DESCRIBEREGIONSREQUEST_H_

#include <string>

#include "RpcAcsRequest.h"
#include "DescribeRegionsResponse.h"
#include "utils/StringUtils.h"

namespace aliyun {

namespace ecs {

namespace v20140526 {

class DescribeRegionsRequest : public RpcAcsRequest<DescribeRegionsResponse> {
  typedef RpcAcsRequest<DescribeRegionsResponse> supper;
 public:
  DescribeRegionsRequest()
      : supper("Ecs", "2014-05-26", "DescribeRegions") {
    ownerId = 0;
    resourceOwnerId = 0;
  }

  const std::string& getOwnerAccount() const {
    return ownerAccount;
  }

  void setOwnerAccount(const std::string& ownerAccount) {
    this->ownerAccount = ownerAccount;
    putQueryParameter("OwnerAccount", ownerAccount);
  }

  // T getXxx() const { return xxx; }
  // void setXxx(T member) { this->member = member; }

  long getOwnerId() const {
    return ownerId;
  }

  void setOwnerId(long ownerId) {
    this->ownerId = ownerId;
    putQueryParameter("OwnerId", aliyun::utils::StringUtils::ToString(ownerId));
  }

  const std::string& getResourceOwnerAccount() const {
    return resourceOwnerAccount;
  }

  void setResourceOwnerAccount(const std::string& resourceOwnerAccount) {
    this->resourceOwnerAccount = resourceOwnerAccount;
    putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
  }

  long getResourceOwnerId() const {
    return resourceOwnerId;
  }

  void setResourceOwnerId(long resourceOwnerId) {
    this->resourceOwnerId = resourceOwnerId;
    putQueryParameter("ResourceOwnerId",
                      aliyun::utils::StringUtils::ToString(ownerId));
  }

 private:
  long ownerId;

  std::string resourceOwnerAccount;

  long resourceOwnerId;

  std::string ownerAccount;
};

}  // namespace v20140526

}  // namespace ecs

}  // namespace aliyun

#endif  // SAMPLE_SIMPLE_DESCRIBEREGIONSREQUEST_H_
